#!/usr/bin/node

console.log('05-pid is :', process.pid);

//spawn调用自定义的外部程序

const cp = require('child_process'),
      child = cp.spawn('./03-child.js');

child.stdout.pipe(process.stdout);
child.stderr.pipe(process.stderr);
